package com.example.demo.mapper;

import com.example.demo.entity.AnswerList;
import com.example.demo.entity.Question;

import java.util.List;

/**
 * @Author: WinstonDeng
 * @Description:
 * @Date: Created in 9:21 2020/4/8
 * @Modified by:
 */
public interface QuestionMapper {
    List<Question> findByQuestionnaireId(long questionnaireId);
    Long addQuestion(Question question);
    void deleteByQuestionnaireId(Long questionnaireId);
    void deleteQuestion(Long questionId);
    Question selectAllAnswer(Long questionId);
    int updateAnswer(Question question);
}
